const INITIAL_STATE = {
    detail: {},
    selectUser: {},
};

export default function order(state = INITIAL_STATE, action) {
    switch (action.type) {
        case "secondHouse_updateState":
            return {
                ...state,
                ...action.data,
            };
        case "secondHouse_reset":
            return {
                detail: {},
                selectUser: {},
            };
        default:
            return state;
    }
}
